package com.zw.cloud.mybatis.plus.db;


import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
import com.zw.cloud.common.utils.IdUtils;
import lombok.extern.slf4j.Slf4j;


@Slf4j
public class CustomIdGenerator implements IdentifierGenerator {

    @Override
    public Long nextId(Object entity) {
        return IdUtils.nextId();
    }

}

